API Documentation
ProgramSourcesHolder.h
1 // ProgramSourcesHolder.h
3 //
5 
6 namespace nkGraphics
7 {
13  struct MacroEntry
14  {
15  std::string _key ;
16  std::string _value ;
17  } ;
18 }
19 
20 namespace nkGraphics
21 {
26  {
27  public :
28 
37 
41  std::string_view getVertexMemory () const ;
45  std::string_view getHullMemory () const ;
49  std::string_view getDomainMemory () const ;
53  std::string_view getGeometryMemory () const ;
57  std::string_view getPixelMemory () const ;
61  std::string_view getComputeMemory () const ;
65  std::string_view getRaytracingMemory () const ;
69  const std::vector<MacroEntry>& getDefineMacrosVertex () const ;
73  const std::vector<MacroEntry>& getDefineMacrosHull () const ;
77  const std::vector<MacroEntry>& getDefineMacrosDomain () const ;
81  const std::vector<MacroEntry>& getDefineMacrosGeometry () const ;
85  const std::vector<MacroEntry>& getDefineMacrosPixel () const ;
89  const std::vector<MacroEntry>& getDefineMacrosCompute () const ;
93  const std::vector<MacroEntry>& getDefineMacrosRaytracing () const ;
97  unsigned int getDefineMacroMaxNumber () const ;
101  unsigned int getDefineMacroMaxNumberPipeline () const ;
105  unsigned int getDefineMacroNumberCompute () const ;
109  unsigned int getDefineMacroNumberRaytracing () const ;
110 
114  void setVertexMemory (const std::string_view& str) ;
118  void setHullMemory (const std::string_view& str) ;
122  void setDomainMemory (const std::string_view& str) ;
126  void setGeometryMemory (const std::string_view& str) ;
130  void setPixelMemory (const std::string_view& str) ;
134  void setComputeMemory (const std::string_view& str) ;
138  void setRaytracingMemory (const std::string_view& str) ;
145  void addDefineMacroVertex (const std::string_view& key, const std::string_view& value) ;
152  void addDefineMacroHull (const std::string_view& key, const std::string_view& value) ;
159  void addDefineMacroDomain (const std::string_view& key, const std::string_view& value) ;
166  void addDefineMacroGeometry (const std::string_view& key, const std::string_view& value) ;
173  void addDefineMacroPixel (const std::string_view& key, const std::string_view& value) ;
180  void addDefineMacroCompute (const std::string_view& key, const std::string_view& value) ;
187  void addDefineMacroRaytracing (const std::string_view& key, const std::string_view& value) ;
188 
210  void copyDefinesFrom (const ProgramSourcesHolder& other) ;
211  } ;
212 }
nkGraphics::ProgramSourcesHolder::getHullMemory
std::string_view getHullMemory() const
nkGraphics::ProgramSourcesHolder::addDefineMacroRaytracing
void addDefineMacroRaytracing(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::setVertexMemory
void setVertexMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::getDefineMacrosPixel
const std::vector< MacroEntry > & getDefineMacrosPixel() const
nkGraphics::ProgramSourcesHolder::getPixelMemory
std::string_view getPixelMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosDomain
const std::vector< MacroEntry > & getDefineMacrosDomain() const
nkGraphics::ProgramSourcesHolder::getGeometryMemory
std::string_view getGeometryMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosHull
const std::vector< MacroEntry > & getDefineMacrosHull() const
nkGraphics::MacroEntry::_key
std::string _key
The macro key.
Definition: ProgramSourcesHolder.h:15
nkGraphics::ProgramSourcesHolder::setGeometryMemory
void setGeometryMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsPipeline
bool hasMinimalDefinitionsPipeline() const
nkGraphics::ProgramSourcesHolder::addDefineMacroPixel
void addDefineMacroPixel(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsRaytracing
bool hasMinimalDefinitionsRaytracing() const
nkGraphics::ProgramSourcesHolder::setComputeMemory
void setComputeMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::getVertexMemory
std::string_view getVertexMemory() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsGeometry
bool hasMinimalDefinitionsGeometry() const
nkGraphics::ProgramSourcesHolder::addDefineMacroDomain
void addDefineMacroDomain(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::getRaytracingMemory
std::string_view getRaytracingMemory() const
nkGraphics::ProgramSourcesHolder::~ProgramSourcesHolder
~ProgramSourcesHolder()
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberRaytracing
unsigned int getDefineMacroNumberRaytracing() const
nkGraphics::ProgramSourcesHolder::addDefineMacroCompute
void addDefineMacroCompute(const std::string_view &key, const std::string_view &value)
nkGraphics::MacroEntry::_value
std::string _value
The value given to the macro.
Definition: ProgramSourcesHolder.h:16
nkGraphics::ProgramSourcesHolder::getDefineMacrosGeometry
const std::vector< MacroEntry > & getDefineMacrosGeometry() const
nkGraphics::ProgramSourcesHolder::addDefineMacroGeometry
void addDefineMacroGeometry(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::setPixelMemory
void setPixelMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::ProgramSourcesHolder
ProgramSourcesHolder()
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumberPipeline
unsigned int getDefineMacroMaxNumberPipeline() const
nkGraphics::ProgramSourcesHolder::addDefineMacroHull
void addDefineMacroHull(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::getComputeMemory
std::string_view getComputeMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumber
unsigned int getDefineMacroMaxNumber() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosVertex
const std::vector< MacroEntry > & getDefineMacrosVertex() const
nkGraphics::ProgramSourcesHolder::copyDefinesFrom
void copyDefinesFrom(const ProgramSourcesHolder &other)
nkGraphics::ProgramSourcesHolder
Holds the sources of a program.
Definition: ProgramSourcesHolder.h:26
nkGraphics::ProgramSourcesHolder::setHullMemory
void setHullMemory(const std::string_view &str)
nkGraphics::ProgramSourcesHolder::setDomainMemory
void setDomainMemory(const std::string_view &str)
nkGraphics::MacroEntry
Holds information about a macro entry.
Definition: ProgramSourcesHolder.h:14
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsCompute
bool hasMinimalDefinitionsCompute() const
nkGraphics::ProgramSourcesHolder::getDomainMemory
std::string_view getDomainMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosCompute
const std::vector< MacroEntry > & getDefineMacrosCompute() const
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberCompute
unsigned int getDefineMacroNumberCompute() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosRaytracing
const std::vector< MacroEntry > & getDefineMacrosRaytracing() const
nkGraphics::ProgramSourcesHolder::addDefineMacroVertex
void addDefineMacroVertex(const std::string_view &key, const std::string_view &value)
nkGraphics::ProgramSourcesHolder::setRaytracingMemory
void setRaytracingMemory(const std::string_view &str)